/**
 * 
 */
package cn.dev123.util.test;

import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.util.Arrays;
import java.util.Formatter;



import cn.dev123.util.tools.Base64;
import cn.dev123.util.tools.HighFormatter;

/**
 * @author hunter
 *
 */
public class Main {

   public static void main(String[] args) throws Exception {
/*	   File f=new File("/home/hunter/sd.class");
	   InputStream in=new FileInputStream(f);
	   byte[] b=new byte[1024];
	   int i=0;
	   StringBuffer s=new StringBuffer();
	   Formatter fs=new Formatter();
	   while((i=in.read(b,0,b.length))!=-1){
		   byte[] bs=Arrays.copyOfRange(b, 0, i);
		   for (int j = 0; j < bs.length; j++) {
			   try{
			   s.append(fs.format("%c", Integer.parseInt(HighFormatter.integerToHexString(bs[j], false, true),16)));
			   }catch(Exception e){
				   continue;
			   }
		  }
		   
	   }
	   in.close();*/
	   
	   //System.out.println("你是谁".getBytes().length);
	   Formatter fs=new Formatter();
	   System.out.println(6 &2);
	   System.out.println(HighFormatter.integerToBinaryString(100%(2*2*2*2*2), true));
	   //System.out.println(HighFormatter.toUnsignedString(123, 6, false, true));
	   //System.out.println(Base64.encode("你是谁".getBytes()));
   }
   
}
